import {createApp} from 'vue'
import App from './App.vue'
//import './registerServiceWorker' pwa配置，暂时不用
import router from './router'
import store from './store'
/* eslint-disable */
import awsui from "../libraries/lib/awsui.es"; //注意awsui组件库根据情况指定路径
import "../libraries/lib/awsui.css";
/*import awsui from "awsui/lib/awsui.es.js"; //注意awsui组件库根据情况指定路径
import "awsui/lib/awsui.css";*/
import NPS from "./distribute/nps/nps.es.js"
import './distribute/nps/nps.css';

const app = createApp(App);
app.use(store);
app.use(router);
app.use(awsui);
app.use(NPS);

// app.use(ElementPlus, { size: 'small', zIndex: 3000 });
const mountApp = ()=>{
    app.mount('#app');
}
const getSid = awsui.getSid;
if(app.config.globalProperties.AWSPageContext?.production){
    mountApp();
}else{
    getSid.exec(app).then(()=>{
        mountApp();
    });
}
declare global {
    interface Window {
        $t: any;
        settingParam: any;
    }
}